package javaStu.jdk8;

import com.google.common.collect.Maps;

import java.util.Map;

/**
 * @author: leiwenkang
 * @date: 2020/6/16
 * @time: 15:43
 */
public class HashMapTest {
    public static void main(String[] args) {
        Map<Integer, Integer> map = Maps.newHashMap();
        System.out.println(map.put(1, 3));
        System.out.println(map.put(1, 3));
        System.out.println(map.putIfAbsent(2, 3));
    }
}
